package com.jivam.lottery.panel;

import javax.swing.JPanel;

import com.jivam.lottery.data.DataCalculator;

/**
 * 抽象面板
 * @author Jivam
 */
public abstract class AbstractPanel extends JPanel {
	private static final long serialVersionUID = -2060453188943177820L;
	
	public AbstractPanel(){
		//注册观察者
		DataCalculator.registerOb(this);
	}
	
	/**
	 * 初始化面板
	 */
	protected abstract void init();
	
	/**
	 * 重新加载面板
	 */
	public abstract void reloadPanel();


}
